<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
<%@ taglib prefix="sb" uri="/struts-bootstrap-tags"%>
<link href="jquery.colorpicker.css" rel="stylesheet" type="text/css" />
<script src='/simpt/js/spectrum/spectrum.js'></script>
<link rel='stylesheet' href='/simpt/js/spectrum/spectrum.css' />
<script>
	$(function() {

		$('#kodeWarna').spectrum({
			showInput : true
		});

	});
</script>
<style>
.control-label {
	margin-right: 10px;
	width: 200px;
}
</style>

<s:url id="urlInsertAgenda" action="modul/agendapimpinan/crud/insert">
</s:url>
<s:url id="urlPejabatList"
	action="modul/jabatanstrukturalpegawai/jsonmap" />

<s:form theme="bootstrap" cssClass="form-horizontal"
	label="Tambah Agenda Pimpinan" id="agendaAddForm">
	<div class="row-fluid">
		<div class="span6">
			<s:hidden name="pejabatStrukturalId" value="%{#parameters.pejabatStrukturalId}"></s:hidden>
			<s:textfield label="Nama Kegiatan" name="namaKegiatan" />
			<s:textfield label="Lokasi Kegiatan" name="lokasiKegiatan" />
			<s:textfield label="Ruang Kegiatan" name="ruangKegiatan" />
			<s:textarea label="Keterangan" name="keterangan"
				cssClass="keterangan" cols="60" rows="5" />
		</div>
		<div class="span6">
			<s:textfield label="Kode Warna" name="kodeWarna" id="kodeWarna"
				value='#FFFFFF'></s:textfield>
			<sj:datepicker label="Dari (Tanggal dan Jam)" name="dari"
				timepicker="true" displayFormat="dd/mm/yy" />
			<sj:datepicker label="Sampai (Tanggal dan Jam)" name="sampai"
				timepicker="true" displayFormat="dd/mm/yy" />


		</div>
	</div>
</s:form>

<div class="row-fluid">
	<div class="span2 offset10">
		<sj:submit id="insertButton" href="%{urlInsertAgenda}" targets="addAgendaDialog"
			cssClass="btn" value="Tambahkan Agenda >>" formIds="agendaAddForm"
			onSuccessTopics="" />
	</div>
</div>

